using UnityEngine;
using UnityEngine.Events;

namespace WorkFlow.Utils
{
    public class OnActiveEvent : MonoBehaviour
    {
        [SerializeField] private UnityEvent onActive = new UnityEvent();
        
        public UnityEvent OnActive => onActive;

        private void OnEnable()
        {
            onActive?.Invoke();
        }
    }
}